home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_startgc.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  1.8 KB  |  91 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_startgc", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.    Condition("TRUE")
  14.    {
  15.    }
  16.  
  17.     Action()
  18.     {
  19.      CreateVarInteger("@.flee1", 0);
  20.      CreateVarInteger("@.flee2", 0);
  21.      CreateVarInteger("@.shuttle", 0);
  22.      NewObjective("objective_flee_to_shuttle1");
  23.      NewObjective("objective_allfleeing");
  24.      NewObjective("objective_wander1");
  25.      NewObjective("objective_wander2");
  26.      NewObjective("objective_trigger_shuttle");
  27.     }
  28.   }
  29. }
  30.  
  31. CreateObjectType("objective_wander1", "Objective")
  32. {
  33.   GameObj();
  34.   ObjectiveObj()
  35.   {
  36.    Condition("TRUE")
  37.    {
  38.    }
  39.  
  40.     Action()
  41.     {
  42.       ExecuteScript("wander1", "squad.move.tagtotrail")
  43.       {
  44.         Op("%.tag", "=", "Traitors1");
  45.         Op("%.trail", "=", "Wander1");
  46.       }
  47.     }
  48.   }
  49. }
  50.  
  51. CreateObjectType("objective_wander2", "Objective")
  52. {
  53.   GameObj();
  54.   ObjectiveObj()
  55.   {
  56.    Condition("TRUE")
  57.    {
  58.    }
  59.  
  60.     Action()
  61.     {
  62.       ExecuteScript("wander2", "squad.move.tagtotrail")
  63.       {
  64.         Op("%.tag", "=", "Traitors3");
  65.         Op("%.trail", "=", "Wander2");
  66.       }
  67.     }
  68.   }
  69. }
  70.  
  71. CreateObjectType("objective_trigger_shuttle", "Objective")
  72. {
  73.   GameObj();
  74.   ObjectiveObj()
  75.   {
  76.     Condition("VarConstInteger", "@.shuttle", "==", 1);
  77.  
  78.     Action()
  79.     {
  80.       ExecuteScript("ShuttleGone", "squad.move.spawntoregion.tag.wait")
  81.       {
  82.         Op("%.region.src", "=", "NearShuttle");
  83.         Op("%.types", "=", "shuttlegone");
  84.         Op("%.tag", "=", "ShuttleGone");
  85.         Op("%.region.dst", "=", "ShuttleGone");
  86.         Op("%.direction", "=", 90);
  87.       }
  88.     }
  89.   }
  90. }
  91.